<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
return array(
    'urlFormat' => 'path',
    'showScriptName' => false,
//    'urlSuffix' => '.tlc',
    'rules' => array(
        //admin 
//        '<module: (admin)>' => '/admin/main/index',
        'admin' => '/admin/main/index',
        'gioi-thieu' => 'site/AboutUs',
        'tin-tuc' => 'site/News',
        'video' => 'site/Video',
        'bao-hanh' => 'site/Warranty',
        'thanh-toan' => 'site/shopcart',
        'lien-he' => 'site/ContactUs',
        '/<url>' => 'categrory/cat',
        'san-pham/<url>' => 'product/detail',
        'tin-tuc/<url>' => 'news/detail', // /cat/15152/chu-b-c
        'video/<url>' => 'video/detail', // /cat/15152/chu-b-c
        '<controller:\w+>/<id:\d+>' => '<controller>/view',
        '<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
        '<controller:\w+>/<action:\w+>' => '<controller>/<action>',
        '<module:\w+>/<controller:\w+>/<action:\w+>' => '<module>/<controller>/<action>',
    ),
);

